package copyengine
{
	import copyengine.screenResize.CEScreenResizeManger;
	import copyengine.utils.cache.CECacheMemoryPool;
	import copyengine.utils.tick.GlobalTick;

	import flash.display.Stage;
	import flash.display.StageAlign;
	import flash.display.StageDisplayState;
	import flash.display.StageScaleMode;

	import org.puremvc.as3.interfaces.IFacade;

	public class CopyEngine
	{
		//在Debug模式下 Rpc模块直接返回SuccedCallback 不像服务器发请求
		public static var DEBUG_RPC_MOUDLE:Boolean = false;

		//是否显示RPC模块的Log
		public static var LOG_RPC_MOUDLE:Boolean = true;

		//当前项目素材目录前缀,用于CEResManger读取素材
		public static var CONST_FOLDER_PREFIX:String = "";



		public function CopyEngine()
		{
		}

		public static function initialze(_stage:Stage,
										 _isDebugRpcMoudle:Boolean,
										 _isLogRpcMoudle:Boolean,
										 _constFolderPrefix:String):void
		{
			DEBUG_RPC_MOUDLE = _isDebugRpcMoudle;
			LOG_RPC_MOUDLE = _isLogRpcMoudle;
			CONST_FOLDER_PREFIX = _constFolderPrefix;

			CECacheMemoryPool.instance.initialize(_stage);

			_stage.align = StageAlign.TOP_LEFT;
			_stage.scaleMode = StageScaleMode.NO_SCALE;
			CEScreenResizeManger.instance.initialize(_stage);
		}
	}
}
